package com.atguigu.my.chapter03

/**
 *
 * @description: xxx
 * @time: 2020-05-25 15:26
 * @author: baojinlong 
 **/
object ImplicitDemo01 {
  def main(args: Array[String]): Unit = {
    val num: Int = 3.5
    println(num)
  }

  implicit def f1(d: Double): Int = {
    d.toInt
  }

}
